package com.csce.domain.entity.go_score.bo;

import com.doudou.core.container.ListUtil;
import lombok.*;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

@AllArgsConstructor
@NoArgsConstructor
@Data
@Builder
@ToString
public class GoScoreExScoreExcelBo implements Serializable {

    private String sheetName;

    private BigDecimal total;

    private List<Score> scoreList = ListUtil.linkedList();

    public void addScore(String examiner,BigDecimal score){
        this.scoreList.add(Score.builder().examiner(examiner).score(score).build());
    }

    @AllArgsConstructor
    @NoArgsConstructor
    @Data
    @ToString
    @Builder
    private static class Score{

        private String examiner;

        private BigDecimal score;
    }





}
